package com.adminsystem.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 试卷管理对象 exam_paper_manage
 *
 * @author admin
 * @date 2023-11-26
 */
public class ExamPaperManage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "paper_id", type = IdType.AUTO)
    private Long paperId;

    /**
     * 图标地址
     */
    private String logoUrl;

    /**
     * 试卷名称
     */
    @Excel(name = "试卷名称")
    private String paperName;

    /**
     * 试卷描述
     */
    private String paperDescription;

    /**
     * 总分数
     */
    @Excel(name = "总分数")
    private Long paperScore;

    /**
     * 限时
     */
    @Excel(name = "限时")
    private Long paperTimeLimit;

    /**
     * 试卷开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "试卷开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date paperStartDate;

    /**
     * 试卷结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "试卷结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date paperEndDate;

    /**
     * 考试类型
     */
    @Excel(name = "考试类型")
    private Long paperCategoryId;


    /**
     * 考试类型
     */
//    @Excel(name = "考试答案")
    private String paperAnswer;

    public String getPaperAnswer() {
        return paperAnswer;
    }

    public void setPaperAnswer(String paperAnswer) {
        this.paperAnswer = paperAnswer;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperDescription(String paperDescription) {
        this.paperDescription = paperDescription;
    }

    public String getPaperDescription() {
        return paperDescription;
    }

    public void setPaperScore(Long paperScore) {
        this.paperScore = paperScore;
    }

    public Long getPaperScore() {
        return paperScore;
    }

    public void setPaperTimeLimit(Long paperTimeLimit) {
        this.paperTimeLimit = paperTimeLimit;
    }

    public Long getPaperTimeLimit() {
        return paperTimeLimit;
    }

    public void setPaperStartDate(Date paperStartDate) {
        this.paperStartDate = paperStartDate;
    }

    public Date getPaperStartDate() {
        return paperStartDate;
    }

    public void setPaperEndDate(Date paperEndDate) {
        this.paperEndDate = paperEndDate;
    }

    public Date getPaperEndDate() {
        return paperEndDate;
    }

    public void setPaperCategoryId(Long paperCategoryId) {
        this.paperCategoryId = paperCategoryId;
    }

    public Long getPaperCategoryId() {
        return paperCategoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("paperId", getPaperId())
                .append("logoUrl", getLogoUrl())
                .append("paperName", getPaperName())
                .append("paperDescription", getPaperDescription())
                .append("paperScore", getPaperScore())
                .append("paperTimeLimit", getPaperTimeLimit())
                .append("paperStartDate", getPaperStartDate())
                .append("paperEndDate", getPaperEndDate())
                .append("paperCategoryId", getPaperCategoryId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}
